import{d as x,l as R,V as E,a as o,o as n,b as l,w as t,q as u,W as k,e as s,m as h,f as g,E as y,A as B,F as C,D as N,c as T}from"./index-c80Lh_is.js";import{N as D}from"./NavTabs-Gqjwuy8q.js";const q=x({__name:"ZoneEgressDetailTabsView",setup(A){var _;const{t:a}=R(),w=(((_=E().getRoutes().find(e=>e.name==="zone-egress-detail-tabs-view"))==null?void 0:_.children)??[]).map(e=>{var c,i;const p=typeof e.name>"u"?(c=e.children)==null?void 0:c[0]:e,r=p.name,d=((i=p.meta)==null?void 0:i.module)??"";return{title:a(`zone-egresses.routes.item.navigation.${r}`),routeName:r,module:d}});return(e,p)=>{const r=o("RouteTitle"),d=o("RouterView"),z=o("DataSource"),c=o("AppView"),i=o("RouteView");return n(),l(i,{name:"zone-egress-detail-tabs-view",params:{zone:"",zoneEgress:""}},{default:t(({route:m,can:v})=>[s(c,{breadcrumbs:[...v("use zones")?[{to:{name:"zone-cp-list-view"},text:u(a)("zone-cps.routes.item.breadcrumbs")}]:[],{to:{name:"zone-egress-list-view",params:{zone:m.params.zone}},text:u(a)("zone-egresses.routes.item.breadcrumbs")}]},{title:t(()=>[h("h1",null,[s(k,{text:m.params.zoneEgress},{default:t(()=>[s(r,{title:u(a)("zone-egresses.routes.item.title",{name:m.params.zoneEgress})},null,8,["title"])]),_:2},1032,["text"])])]),default:t(()=>[g(),s(z,{src:`/zone-egress-overviews/${m.params.zoneEgress}`},{default:t(({data:b,error:f})=>[f!==void 0?(n(),l(y,{key:0,error:f},null,8,["error"])):b===void 0?(n(),l(B,{key:1})):(n(),T(C,{key:2},[s(D,{class:"route-zone-egress-detail-view-tabs",tabs:u(w)},null,8,["tabs"]),g(),s(d,null,{default:t(V=>[(n(),l(N(V.Component),{data:b},null,8,["data"]))]),_:2},1024)],64))]),_:2},1032,["src"])]),_:2},1032,["breadcrumbs"])]),_:1})}}});export{q as default};
